// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .CS}

//-------------MAIN---------------
thread 'SWIM' 

while true
    repeat
    wait 0
    until if Player.Defined(0)
    if Actor.Driving($PLAYER_ACTOR)
    then 
        if 0449:   actor $PLAYER_ACTOR in_a_car
        then
            0@ = Actor.CurrentCar($PLAYER_ACTOR)
            
                if 056E:   car 0@ defined 
                then
                    if and
                        02BF:   car 0@ sunk
                        84A7:   not actor $PLAYER_ACTOR driving_boat 
                    then
                        0918: set_car 0@ engine_operation 0 
                        //03E5: show_text_box 'MPZ'
                        0407: store_coords_to 1@ 2@ 3@ from_car 0@ with_offset 0.0 0.0 1.0 
                        04D3: get_nearest_car_path_coords_from 1@ 2@ 3@ 2 store_to 4@ 5@ 6@ 
                        Car.PutAt(0@, 4@, 5@, 6@)
                        0918: set_car 0@ engine_operation 1
                        Camera.Restore_WithJumpCut
                    end
                end
            
        enD
    enD
end